package com.bxy.dzsc.service.impl;

import com.bxy.dzsc.dao.GoodsDao;
import com.bxy.dzsc.domain.Goods;
import com.bxy.dzsc.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    private GoodsDao dao;
    @Override
    public void deletegoods(Integer id) {
        dao.deletegoods(id);
    }

    @Override
    public List<Goods> findall() {
        return dao.findall();
    }

    @Override
    public List<Goods> findbyname(String name) {
        return dao.findbyname(name);
    }

    @Override
    public Goods findbyid(Integer id) {
        return dao.findbyid(id);
    }
}
